package br.com.alinesoftware.app.entity;


import java.io.Serializable;
import com.powerlogic.jcompany.domain.validation.PlcUnifiedValidation;
import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.persistence.Id;
import javax.validation.constraints.Size;
import javax.persistence.GenerationType;
import javax.persistence.MappedSuperclass;
import javax.persistence.GeneratedValue;

@MappedSuperclass
@PlcUnifiedValidation
public abstract class Pais  implements Serializable {

	private static final long serialVersionUID = -5052830555342392764L;

	@Id 
 	@GeneratedValue(strategy=GenerationType.AUTO, generator = "SE_PAIS")
	@Column(nullable=false, length=5, name="cod_pais")
	private Long id;
	
	@NotNull
	@Size(max = 2)
	@Column
	private String sglPais;
	
	@NotNull
	@Size(max = 50)
	@Column
	private String nomPais;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public String getSglPais() {
		return sglPais;
	}

	public void setSglPais(String sglPais) {
		this.sglPais=sglPais;
	}

	public String getNomPais() {
		return nomPais;
	}

	public void setNomPais(String nomPais) {
		this.nomPais=nomPais;
	}

}
